import { observable, action } from "mobx";
// import resource from "@/utils/resource";
// import API from "@/utils/monitorwarning";

class AddModalStore {
    @observable visible = false;
    @observable type = "APP";
    @observable activeTabKey = "single";

    @action.bound
    submit = callBack => {
        console.log("点击确定按钮进行的操作");
        callBack();
    };

    @action.bound
    changeVisible = visible => {
        this.visible = visible;
    };

    @action.bound
    changeType = type => {
        this.type = type;
    };

    @action.bound
    changeTab = tabKey => {
        this.activeTabKey = tabKey;
    };
}

export default new AddModalStore();
